home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
031-040
/
amok37
/
skrÄbel
/
sc_computer-mod-asm.zoo
/
Skräbel-src
/
sc_Computer-Mod.ASM
/
PreviousTreeNode.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-03-19
|
1KB
|
64 lines
;(*****************************************************************************
;
; :Program. PreviousTreeNode.ASM
; :Author. Georg Brünsing
; :Address. Grechte 2, D-4156 Willich 3
; :Phone. 02156/7534
; :ShortCut. gb
; :Support. -
; :Version. 1.0
; :Date. 20-Feb-89
; :Copyright. PD
; :Language. Assembler
; :Translator. Profimat / DATA BECKER
; :Imports. -
; :Update. -
; :History. -
; :ModHistory. -
; :Contents. Assembler Source für Skräbel
; :Remark. -
; :Usage. -
;
;*****************************************************************************)
; AVLNode = RECORD
Pred = 0
Links = 4
Rechts = 8
bal = 12
Len = 14
Inhalt = 16
AVLNodeSize = 20
PreviousTreeNode:
; Eingang in A0 = Node : AVLNodePtr
; Ausgang in D0 = Node : AVLNodePtr
\Node EQUR A0
\Pred EQUR A1
MOVE.L Links(\Node) , D0
BNE.S \IF_ELSE_1
\LOOP:
MOVE.L Pred(\Node) , D0
BEQ.S \Ende
MOVEA.L D0 , \Pred
TST.L Links(\Pred)
BNE.S \IF_ELSE_2
BRA.S \Ende
\IF_ELSE_2:
CMPA.L Links(\Pred) , \Node
BNE.S \Ende
MOVE.L D0 , \Node
BRA.S \LOOP
\IF_ELSE_1:
MOVE.L D0 , \Node
MOVE.L Rechts(\Node) , D0
BNE.S \IF_ELSE_1
MOVE.L \Node , D0
\Ende:
RTS
END